<template>
  <div id="App">
    <!-- 顶部粉色固定部分 -->
    <div class="top-bar">
      <div class="container">
        <div>
          <span style="margin-right: 69px">
            您好，欢迎访问北上快马官方网站！
          </span>
          <span style="margin-right:20px;">咨询热线：0591-88626767</span>

          <span class="float-md-right">北上快马</span>
        </div>
      </div>
    </div>
    <!-- 导航栏 -->
    <div style="background-color: #f8f9fa">
      <div class="container">
        <nav
          class="navbar navbar-expand-md bg-light navbar-light"
          style="padding: 0; margin-right: 0"
        >
          <a class="navbar-brand" href="#" style="margin-right: 104px">
            <img src="./assets/WechatIMG415.png" alt="北上快马" />
          </a>
          <button
            class="navbar-toggler"
            type="button"
            data-toggle="collapse"
            data-target="#collapsibleNavbar"
          >
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse nav-font" id="collapsibleNavbar">
            <ul class="navbar-nav">
              <li class="nav-item" :class="{'nav-link-act' : page==0}" @click="pageChange(0)">
                <router-link to="/" class="nav-link" style="color:black;">首页</router-link>
              </li>
              <li class="nav-item" :class="{'nav-link-act' : page==1}" @click="pageChange(1)">
                <router-link to="/juniorcollege" class="nav-link" style="color:black;">专科</router-link>
              </li>
              <li class="nav-item" :class="{'nav-link-act' : page==2}" @click="pageChange(2)">
                <router-link to="/" class="nav-link" style="color:black;">本科</router-link>
              </li>
              <li class="nav-item" :class="{'nav-link-act' : page==3}" @click="pageChange(3)">
                <router-link to="/" class="nav-link" style="color:black;">在职研究生</router-link>
              </li>
              <li class="nav-item" :class="{'nav-link-act' : page==4}" @click="pageChange(4)">
                <router-link to="/profession" class="nav-link" style="color:black;">职业证书</router-link>
              </li>
              <li class="nav-item" :class="{'nav-link-act' : page==5}" @click="pageChange(5)">
                <router-link to="/" class="nav-link" style="color:black;">教学公告</router-link>
              </li>
              <li class="nav-item" :class="{'nav-link-act' : page==6}" @click="pageChange(6)">
                <router-link to="/about_us" class="nav-link" style="color:black;">关于我们</router-link>
              </li>
            </ul>
          </div>
        </nav>
      </div>
    </div>
    <router-view></router-view>

    <!-- 页脚 -->
    <div class="index-footer">
      <div class="container">
        <div class="row" style="margin-bottom:64px;">
          <div class="col-md-5">
            <p class="footer-list-title">联系我们</p>
            <ul class="footer-conmunicate-list">
              <li v-for="con in conmunicateList" :key="con">
                {{ con }}
              </li>
            </ul>
          </div>
          <div class="col-md-4">
            <p class="footer-list-title">友情链接</p>
            <ul class="footer-friendLink-list">
              <li v-for="flink in friendLinkList" :key="flink">
                <div class="point-list"></div><p>{{ flink.name }} </p>
                <br>
                <a :href="flink.link">{{ flink.link }}</a>
              </li>
            </ul>
          </div>
          <div class="col-md-3 col-sm-12" style="padding-left:70px;">
            <p class="footer-list-title">微信公众号</p>
            <img
              src="./assets/pic_qr_code.png"
              alt=""
              style="margin-bottom: 16px"
            />
            <p class="detail-font">地址:鼓楼区五四路环球广场a区36楼</p>
            <p class="detail-font">电话:0591-88626767</p>
          </div>
        </div>
        <div align="center">
          <p style="font-size:12px;color: #909295;">备案号：</p>
        </div>
      </div>
    </div>
  </div>
</template>

<style>
* {
  margin: 0;
  padding: 0;
}
li {
  list-style-type: none;
}
/* 顶部粉色固定部分 */
.top-bar {
  min-height: 26px;
  line-height: 26px;
  background-color: #d96464;
  color: white;
  font-size: 14px;
}
/* 导航栏 */
.nav-font .nav-item {
  margin-right: 42px;
}
.nav-font .navbar-nav {
  min-height: 76px;
  line-height: 76px;
}
.nav-font .nav-link {
  padding: 0 !important;
  color: none;
  color: black;
  font-weight: 400;
}
.nav-link-act {
  border-bottom: 2px solid #d91f23;
}
.nav-link-act a {
  color: #d91f23 !important;
  font-weight: 500 !important;
}
/* 页脚 */
.index-footer {
  background-color: #0d1726;
  min-height: 478px;
  padding-top: 48px;
  padding-bottom: 28px;
  box-sizing: border-box;
}
.footer-list-title {
  font-size: 12px;
  color: #ffffff;
  line-height: 26px;
  margin-bottom: 40px;
}
.footer-conmunicate-list li {
  font-size: 12px;
  color: #909295;
  line-height: 26px;
  margin-bottom: 20px;
}
.footer-conmunicate-list li:hover {
  color: white;
}
.footer-friendLink-list li {
  color: #ffffff;
  margin-bottom: 14px;
}
.point-list{
  width: 4px;
  height: 4px;
  background-color: white;
  border-radius: 2.5px;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 2.4px;
}
.footer-friendLink-list li p {
  font-size: 12px;
  margin-bottom: 0;
  display: inline;
}
.footer-friendLink-list li a {
  font-size: 12px;
  color: #909295;
}
.detail-font {
  font-size: 12px;
  color: #ffffff;
  margin-bottom: 28px;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>

<script>
export default {
  name: "App",
  data() {
    return {
      conmunicateList: [
        "福州校区：鼓楼区五四路环球广场a区36楼",
        "泉州校区：丰泽区泉秀路农行大厦23楼E-H",
        "厦门校区：思明区文灶帝豪大厦1606",
        "漳州校区：芗城区万科瑞金城南区15栋1901室",
      ],
      friendLinkList: [
        {
          name: "福建教育考试院",
          link: "http://www.eeafj.cn/",
        },
        {
          name: "福建师范大学",
          link: "https://www.fjnu.edu.cn/",
        },
        {
          name: "福建医科大学",
          link: "https://www.fjmu.edu.cn/",
        },
        {
          name: "福建华南女子职业学院",
          link: "http://www.hnwomen.com.cn/",
        },
      ],
      page:0
    };
  },
  methods: {
    pageChange(i){
      this.page = i;
    }
  },
};
</script>